package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Friends;
import com.net.tkc.pro.impl.FriendsImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FriendsSerVice{
    @Resource
    FriendsImpl friendsImpl;

    public int addFriends(Friends Friends) {
        return friendsImpl.addFriends(Friends);
    }

    public int upFriends(int status, int id) {
        return friendsImpl.upFriends(status, id);
    }

    public List<Friends> getUserList(int friendid) {
        return friendsImpl.getUserList(friendid);
    }

    public List<Friends> getFriendList(int userid) {
        return friendsImpl.getFriendList(userid);
    }
    public List<Friends> getList() {
        return friendsImpl.getList();
    }
}
